package com.ourteam.product.model.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:00:50
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductModelObjectRelate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String relateCode;

    /**
     * Attribute relateCode Be Seted Falg
     */
    private boolean relateCodeSetted = false;

    /**
    * Attribute relateCode is Null Falg
    */
    private boolean relateCodeNull = false;
    private String relateName;

    /**
     * Attribute relateName Be Seted Falg
     */
    private boolean relateNameSetted = false;

    /**
    * Attribute relateName is Null Falg
    */
    private boolean relateNameNull = false;
    private long objectId;

    /**
     * Attribute objectId Be Seted Falg
     */
    private boolean objectIdSetted = false;

    /**
    * Attribute objectId is Null Falg
    */
    private boolean objectIdNull = false;
    private long relatedObjectId;

    /**
     * Attribute relatedObjectId Be Seted Falg
     */
    private boolean relatedObjectIdSetted = false;

    /**
    * Attribute relatedObjectId is Null Falg
    */
    private boolean relatedObjectIdNull = false;
    private String relatedType;

    /**
     * Attribute relatedType Be Seted Falg
     */
    private boolean relatedTypeSetted = false;

    /**
    * Attribute relatedType is Null Falg
    */
    private boolean relatedTypeNull = false;
    private String relatedConfig;

    /**
     * Attribute relatedConfig Be Seted Falg
     */
    private boolean relatedConfigSetted = false;

    /**
    * Attribute relatedConfig is Null Falg
    */
    private boolean relatedConfigNull = false;
    private int sortIndex;

    /**
     * Attribute sortIndex Be Seted Falg
     */
    private boolean sortIndexSetted = false;

    /**
    * Attribute sortIndex is Null Falg
    */
    private boolean sortIndexNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String relatedObjectName;

    /**
     * Attribute relatedObjectName Be Seted Falg
     */
    private boolean relatedObjectNameSetted = false;

    /**
    * Attribute relatedObjectName is Null Falg
    */
    private boolean relatedObjectNameNull = false;
    private String relatedObjectType;

    /**
     * Attribute relatedObjectType Be Seted Falg
     */
    private boolean relatedObjectTypeSetted = false;

    /**
    * Attribute relatedObjectType is Null Falg
    */
    private boolean relatedObjectTypeNull = false;
    private String relatedObjectRemarks;

    /**
     * Attribute relatedObjectRemarks Be Seted Falg
     */
    private boolean relatedObjectRemarksSetted = false;

    /**
    * Attribute relatedObjectRemarks is Null Falg
    */
    private boolean relatedObjectRemarksNull = false;
    private long relatedObjectPackageId;

    /**
     * Attribute relatedObjectPackageId Be Seted Falg
     */
    private boolean relatedObjectPackageIdSetted = false;

    /**
    * Attribute relatedObjectPackageId is Null Falg
    */
    private boolean relatedObjectPackageIdNull = false;
    private String relatedObjectPackageName;

    /**
     * Attribute relatedObjectPackageName Be Seted Falg
     */
    private boolean relatedObjectPackageNameSetted = false;

    /**
    * Attribute relatedObjectPackageName is Null Falg
    */
    private boolean relatedObjectPackageNameNull = false;
    private String objectName;

    /**
     * Attribute objectName Be Seted Falg
     */
    private boolean objectNameSetted = false;

    /**
    * Attribute objectName is Null Falg
    */
    private boolean objectNameNull = false;
    private String objectType;

    /**
     * Attribute objectType Be Seted Falg
     */
    private boolean objectTypeSetted = false;

    /**
    * Attribute objectType is Null Falg
    */
    private boolean objectTypeNull = false;
    private String objectRemarks;

    /**
     * Attribute objectRemarks Be Seted Falg
     */
    private boolean objectRemarksSetted = false;

    /**
    * Attribute objectRemarks is Null Falg
    */
    private boolean objectRemarksNull = false;
    private long objectPackageId;

    /**
     * Attribute objectPackageId Be Seted Falg
     */
    private boolean objectPackageIdSetted = false;

    /**
    * Attribute objectPackageId is Null Falg
    */
    private boolean objectPackageIdNull = false;
    private String objectPackageName;

    /**
     * Attribute objectPackageName Be Seted Falg
     */
    private boolean objectPackageNameSetted = false;

    /**
    * Attribute objectPackageName is Null Falg
    */
    private boolean objectPackageNameNull = false;

    public ProductModelObjectRelate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get relateCode
         *
         * @return String
         */
    final public String getRelateCode() {
        if (isRelateCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(relateCode);
        }
    }

    /**
     * Set relateCode
     *
     * @param String
     */
    final public void setRelateCode(String relateCode) {
        this.relateCode = StringUtils.trim(relateCode);

        this.relateCodeSetted = true;

        this.setRelateCodeNull(this.relateCode == null);
    }

    /**
     * Get relateCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelateCodeSetted() {
        return this.relateCodeSetted;
    }

    /**
     * Set relateCode Null
     *
     */
    final public void setRelateCodeNull() {
        this.relateCodeNull = true;
    }

    final public void setRelateCodeNull(boolean aNullFlag) {
        this.relateCodeNull = aNullFlag;
    }

    final public boolean isRelateCodeNull() {
        return this.relateCodeNull;
    }

    /**
         * Get relateName
         *
         * @return String
         */
    final public String getRelateName() {
        if (isRelateNameNull()) {
            return null;
        } else {
            return StringUtils.trim(relateName);
        }
    }

    /**
     * Set relateName
     *
     * @param String
     */
    final public void setRelateName(String relateName) {
        this.relateName = StringUtils.trim(relateName);

        this.relateNameSetted = true;

        this.setRelateNameNull(this.relateName == null);
    }

    /**
     * Get relateName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelateNameSetted() {
        return this.relateNameSetted;
    }

    /**
     * Set relateName Null
     *
     */
    final public void setRelateNameNull() {
        this.relateNameNull = true;
    }

    final public void setRelateNameNull(boolean aNullFlag) {
        this.relateNameNull = aNullFlag;
    }

    final public boolean isRelateNameNull() {
        return this.relateNameNull;
    }

    /**
         * Get objectId
         *
         * @return long
         */
    final public long getObjectId() {
        return objectId;
    }

    /**
     * Set objectId
     *
     * @param long
     */
    final public void setObjectId(long objectId) {
        this.objectId = objectId;

        this.objectIdSetted = true;

        this.setObjectIdNull(false);
    }

    /**
     * Get objectId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectIdSetted() {
        return this.objectIdSetted;
    }

    /**
     * Set objectId Null
     *
     */
    final public void setObjectIdNull() {
        this.objectIdNull = true;
    }

    final public void setObjectIdNull(boolean aNullFlag) {
        this.objectIdNull = aNullFlag;
    }

    final public boolean isObjectIdNull() {
        return this.objectIdNull;
    }

    /**
         * Get relatedObjectId
         *
         * @return long
         */
    final public long getRelatedObjectId() {
        return relatedObjectId;
    }

    /**
     * Set relatedObjectId
     *
     * @param long
     */
    final public void setRelatedObjectId(long relatedObjectId) {
        this.relatedObjectId = relatedObjectId;

        this.relatedObjectIdSetted = true;

        this.setRelatedObjectIdNull(false);
    }

    /**
     * Get relatedObjectId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedObjectIdSetted() {
        return this.relatedObjectIdSetted;
    }

    /**
     * Set relatedObjectId Null
     *
     */
    final public void setRelatedObjectIdNull() {
        this.relatedObjectIdNull = true;
    }

    final public void setRelatedObjectIdNull(boolean aNullFlag) {
        this.relatedObjectIdNull = aNullFlag;
    }

    final public boolean isRelatedObjectIdNull() {
        return this.relatedObjectIdNull;
    }

    /**
         * Get relatedType
         *
         * @return String
         */
    final public String getRelatedType() {
        if (isRelatedTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedType);
        }
    }

    /**
     * Set relatedType
     *
     * @param String
     */
    final public void setRelatedType(String relatedType) {
        this.relatedType = StringUtils.trim(relatedType);

        this.relatedTypeSetted = true;

        this.setRelatedTypeNull(this.relatedType == null);
    }

    /**
     * Get relatedType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedTypeSetted() {
        return this.relatedTypeSetted;
    }

    /**
     * Set relatedType Null
     *
     */
    final public void setRelatedTypeNull() {
        this.relatedTypeNull = true;
    }

    final public void setRelatedTypeNull(boolean aNullFlag) {
        this.relatedTypeNull = aNullFlag;
    }

    final public boolean isRelatedTypeNull() {
        return this.relatedTypeNull;
    }

    /**
         * Get relatedConfig
         *
         * @return String
         */
    final public String getRelatedConfig() {
        if (isRelatedConfigNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedConfig);
        }
    }

    /**
     * Set relatedConfig
     *
     * @param String
     */
    final public void setRelatedConfig(String relatedConfig) {
        this.relatedConfig = StringUtils.trim(relatedConfig);

        this.relatedConfigSetted = true;

        this.setRelatedConfigNull(this.relatedConfig == null);
    }

    /**
     * Get relatedConfig Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedConfigSetted() {
        return this.relatedConfigSetted;
    }

    /**
     * Set relatedConfig Null
     *
     */
    final public void setRelatedConfigNull() {
        this.relatedConfigNull = true;
    }

    final public void setRelatedConfigNull(boolean aNullFlag) {
        this.relatedConfigNull = aNullFlag;
    }

    final public boolean isRelatedConfigNull() {
        return this.relatedConfigNull;
    }

    /**
         * Get sortIndex
         *
         * @return int
         */
    final public int getSortIndex() {
        return sortIndex;
    }

    /**
     * Set sortIndex
     *
     * @param int
     */
    final public void setSortIndex(int sortIndex) {
        this.sortIndex = sortIndex;

        this.sortIndexSetted = true;

        this.setSortIndexNull(false);
    }

    /**
     * Get sortIndex Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSortIndexSetted() {
        return this.sortIndexSetted;
    }

    /**
     * Set sortIndex Null
     *
     */
    final public void setSortIndexNull() {
        this.sortIndexNull = true;
    }

    final public void setSortIndexNull(boolean aNullFlag) {
        this.sortIndexNull = aNullFlag;
    }

    final public boolean isSortIndexNull() {
        return this.sortIndexNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get relatedObjectName
         *
         * @return String
         */
    final public String getRelatedObjectName() {
        if (isRelatedObjectNameNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedObjectName);
        }
    }

    /**
     * Set relatedObjectName
     *
     * @param String
     */
    final public void setRelatedObjectName(String relatedObjectName) {
        this.relatedObjectName = StringUtils.trim(relatedObjectName);

        this.relatedObjectNameSetted = true;

        this.setRelatedObjectNameNull(this.relatedObjectName == null);
    }

    /**
     * Get relatedObjectName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedObjectNameSetted() {
        return this.relatedObjectNameSetted;
    }

    /**
     * Set relatedObjectName Null
     *
     */
    final public void setRelatedObjectNameNull() {
        this.relatedObjectNameNull = true;
    }

    final public void setRelatedObjectNameNull(boolean aNullFlag) {
        this.relatedObjectNameNull = aNullFlag;
    }

    final public boolean isRelatedObjectNameNull() {
        return this.relatedObjectNameNull;
    }

    /**
         * Get relatedObjectType
         *
         * @return String
         */
    final public String getRelatedObjectType() {
        if (isRelatedObjectTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedObjectType);
        }
    }

    /**
     * Set relatedObjectType
     *
     * @param String
     */
    final public void setRelatedObjectType(String relatedObjectType) {
        this.relatedObjectType = StringUtils.trim(relatedObjectType);

        this.relatedObjectTypeSetted = true;

        this.setRelatedObjectTypeNull(this.relatedObjectType == null);
    }

    /**
     * Get relatedObjectType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedObjectTypeSetted() {
        return this.relatedObjectTypeSetted;
    }

    /**
     * Set relatedObjectType Null
     *
     */
    final public void setRelatedObjectTypeNull() {
        this.relatedObjectTypeNull = true;
    }

    final public void setRelatedObjectTypeNull(boolean aNullFlag) {
        this.relatedObjectTypeNull = aNullFlag;
    }

    final public boolean isRelatedObjectTypeNull() {
        return this.relatedObjectTypeNull;
    }

    /**
         * Get relatedObjectRemarks
         *
         * @return String
         */
    final public String getRelatedObjectRemarks() {
        if (isRelatedObjectRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedObjectRemarks);
        }
    }

    /**
     * Set relatedObjectRemarks
     *
     * @param String
     */
    final public void setRelatedObjectRemarks(String relatedObjectRemarks) {
        this.relatedObjectRemarks = StringUtils.trim(relatedObjectRemarks);

        this.relatedObjectRemarksSetted = true;

        this.setRelatedObjectRemarksNull(this.relatedObjectRemarks == null);
    }

    /**
     * Get relatedObjectRemarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedObjectRemarksSetted() {
        return this.relatedObjectRemarksSetted;
    }

    /**
     * Set relatedObjectRemarks Null
     *
     */
    final public void setRelatedObjectRemarksNull() {
        this.relatedObjectRemarksNull = true;
    }

    final public void setRelatedObjectRemarksNull(boolean aNullFlag) {
        this.relatedObjectRemarksNull = aNullFlag;
    }

    final public boolean isRelatedObjectRemarksNull() {
        return this.relatedObjectRemarksNull;
    }

    /**
         * Get relatedObjectPackageId
         *
         * @return long
         */
    final public long getRelatedObjectPackageId() {
        return relatedObjectPackageId;
    }

    /**
     * Set relatedObjectPackageId
     *
     * @param long
     */
    final public void setRelatedObjectPackageId(long relatedObjectPackageId) {
        this.relatedObjectPackageId = relatedObjectPackageId;

        this.relatedObjectPackageIdSetted = true;

        this.setRelatedObjectPackageIdNull(false);
    }

    /**
     * Get relatedObjectPackageId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedObjectPackageIdSetted() {
        return this.relatedObjectPackageIdSetted;
    }

    /**
     * Set relatedObjectPackageId Null
     *
     */
    final public void setRelatedObjectPackageIdNull() {
        this.relatedObjectPackageIdNull = true;
    }

    final public void setRelatedObjectPackageIdNull(boolean aNullFlag) {
        this.relatedObjectPackageIdNull = aNullFlag;
    }

    final public boolean isRelatedObjectPackageIdNull() {
        return this.relatedObjectPackageIdNull;
    }

    /**
         * Get relatedObjectPackageName
         *
         * @return String
         */
    final public String getRelatedObjectPackageName() {
        if (isRelatedObjectPackageNameNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedObjectPackageName);
        }
    }

    /**
     * Set relatedObjectPackageName
     *
     * @param String
     */
    final public void setRelatedObjectPackageName(
        String relatedObjectPackageName) {
        this.relatedObjectPackageName = StringUtils.trim(relatedObjectPackageName);

        this.relatedObjectPackageNameSetted = true;

        this.setRelatedObjectPackageNameNull(this.relatedObjectPackageName == null);
    }

    /**
     * Get relatedObjectPackageName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedObjectPackageNameSetted() {
        return this.relatedObjectPackageNameSetted;
    }

    /**
     * Set relatedObjectPackageName Null
     *
     */
    final public void setRelatedObjectPackageNameNull() {
        this.relatedObjectPackageNameNull = true;
    }

    final public void setRelatedObjectPackageNameNull(boolean aNullFlag) {
        this.relatedObjectPackageNameNull = aNullFlag;
    }

    final public boolean isRelatedObjectPackageNameNull() {
        return this.relatedObjectPackageNameNull;
    }

    /**
         * Get objectName
         *
         * @return String
         */
    final public String getObjectName() {
        if (isObjectNameNull()) {
            return null;
        } else {
            return StringUtils.trim(objectName);
        }
    }

    /**
     * Set objectName
     *
     * @param String
     */
    final public void setObjectName(String objectName) {
        this.objectName = StringUtils.trim(objectName);

        this.objectNameSetted = true;

        this.setObjectNameNull(this.objectName == null);
    }

    /**
     * Get objectName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectNameSetted() {
        return this.objectNameSetted;
    }

    /**
     * Set objectName Null
     *
     */
    final public void setObjectNameNull() {
        this.objectNameNull = true;
    }

    final public void setObjectNameNull(boolean aNullFlag) {
        this.objectNameNull = aNullFlag;
    }

    final public boolean isObjectNameNull() {
        return this.objectNameNull;
    }

    /**
         * Get objectType
         *
         * @return String
         */
    final public String getObjectType() {
        if (isObjectTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(objectType);
        }
    }

    /**
     * Set objectType
     *
     * @param String
     */
    final public void setObjectType(String objectType) {
        this.objectType = StringUtils.trim(objectType);

        this.objectTypeSetted = true;

        this.setObjectTypeNull(this.objectType == null);
    }

    /**
     * Get objectType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectTypeSetted() {
        return this.objectTypeSetted;
    }

    /**
     * Set objectType Null
     *
     */
    final public void setObjectTypeNull() {
        this.objectTypeNull = true;
    }

    final public void setObjectTypeNull(boolean aNullFlag) {
        this.objectTypeNull = aNullFlag;
    }

    final public boolean isObjectTypeNull() {
        return this.objectTypeNull;
    }

    /**
         * Get objectRemarks
         *
         * @return String
         */
    final public String getObjectRemarks() {
        if (isObjectRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(objectRemarks);
        }
    }

    /**
     * Set objectRemarks
     *
     * @param String
     */
    final public void setObjectRemarks(String objectRemarks) {
        this.objectRemarks = StringUtils.trim(objectRemarks);

        this.objectRemarksSetted = true;

        this.setObjectRemarksNull(this.objectRemarks == null);
    }

    /**
     * Get objectRemarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectRemarksSetted() {
        return this.objectRemarksSetted;
    }

    /**
     * Set objectRemarks Null
     *
     */
    final public void setObjectRemarksNull() {
        this.objectRemarksNull = true;
    }

    final public void setObjectRemarksNull(boolean aNullFlag) {
        this.objectRemarksNull = aNullFlag;
    }

    final public boolean isObjectRemarksNull() {
        return this.objectRemarksNull;
    }

    /**
         * Get objectPackageId
         *
         * @return long
         */
    final public long getObjectPackageId() {
        return objectPackageId;
    }

    /**
     * Set objectPackageId
     *
     * @param long
     */
    final public void setObjectPackageId(long objectPackageId) {
        this.objectPackageId = objectPackageId;

        this.objectPackageIdSetted = true;

        this.setObjectPackageIdNull(false);
    }

    /**
     * Get objectPackageId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectPackageIdSetted() {
        return this.objectPackageIdSetted;
    }

    /**
     * Set objectPackageId Null
     *
     */
    final public void setObjectPackageIdNull() {
        this.objectPackageIdNull = true;
    }

    final public void setObjectPackageIdNull(boolean aNullFlag) {
        this.objectPackageIdNull = aNullFlag;
    }

    final public boolean isObjectPackageIdNull() {
        return this.objectPackageIdNull;
    }

    /**
         * Get objectPackageName
         *
         * @return String
         */
    final public String getObjectPackageName() {
        if (isObjectPackageNameNull()) {
            return null;
        } else {
            return StringUtils.trim(objectPackageName);
        }
    }

    /**
     * Set objectPackageName
     *
     * @param String
     */
    final public void setObjectPackageName(String objectPackageName) {
        this.objectPackageName = StringUtils.trim(objectPackageName);

        this.objectPackageNameSetted = true;

        this.setObjectPackageNameNull(this.objectPackageName == null);
    }

    /**
     * Get objectPackageName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectPackageNameSetted() {
        return this.objectPackageNameSetted;
    }

    /**
     * Set objectPackageName Null
     *
     */
    final public void setObjectPackageNameNull() {
        this.objectPackageNameNull = true;
    }

    final public void setObjectPackageNameNull(boolean aNullFlag) {
        this.objectPackageNameNull = aNullFlag;
    }

    final public boolean isObjectPackageNameNull() {
        return this.objectPackageNameNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductModelObjectRelate) == false) {
            return false;
        }

        ProductModelObjectRelate other = (ProductModelObjectRelate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("relateCode=");
        buffer.append(this.relateCode);

        buffer.append("relateName=");
        buffer.append(this.relateName);

        buffer.append("objectId=");
        buffer.append(this.objectId);

        buffer.append("relatedObjectId=");
        buffer.append(this.relatedObjectId);

        buffer.append("relatedType=");
        buffer.append(this.relatedType);

        buffer.append("relatedConfig=");
        buffer.append(this.relatedConfig);

        buffer.append("sortIndex=");
        buffer.append(this.sortIndex);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("relatedObjectName=");
        buffer.append(this.relatedObjectName);

        buffer.append("relatedObjectType=");
        buffer.append(this.relatedObjectType);

        buffer.append("relatedObjectPackageId=");
        buffer.append(this.relatedObjectPackageId);

        buffer.append("relatedObjectPackageName=");
        buffer.append(this.relatedObjectPackageName);

        buffer.append("relatedObjectRemarks=");
        buffer.append(this.relatedObjectRemarks);

        buffer.append("objectName=");
        buffer.append(this.objectName);

        buffer.append("objectType=");
        buffer.append(this.objectType);

        buffer.append("objectRemarks=");
        buffer.append(this.objectRemarks);

        buffer.append("objectPackageId=");
        buffer.append(this.objectPackageId);

        buffer.append("objectPackageName=");
        buffer.append(this.objectPackageName);

        buffer.append("]");

        return buffer.toString();
    }
}
